const links = document.querySelectorAll(".navbar-link");

links.forEach((link) => {
    link.addEventListener('click', () => {
        links.forEach((link) => {
            link.className = 'navbar-link';
        })
        link.previousElementSibling.classList.add('prevElChange');
        link.nextElementSibling.classList.add('nextElChange')
        link.classList.add('change')
    })
})